export default function( d ){

  const year = d.getFullYear();
  const month = d.getMonth() + 1;
  const date = d.getDate();

  function cz(n){
    return n<10 ? "0"+n : n;
  }

  return `${year}-${cz(month)}-${cz(date)}`;
}